import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import DetailsSwitch from "./components/DetailsSwitch.vue";
import ZhEnSwitch from "./components/ZhEnSwitch.vue";
import BasicProfile from "./components/profile/BasicProfile.vue";
import HanProfile from "./components/profile/HanProfile.vue";
import ZResume from './components/profile/ZResume.vue';
import "./style.css";

export default {
    extends: DefaultTheme,
    async enhanceApp({ app }) {
        // register your custom global components
        app.component('DetailsSwitch', DetailsSwitch);
        app.component('ZhEnSwitch', ZhEnSwitch);
        app.component('HanProfile', HanProfile);
        app.component('BasicProfile', BasicProfile);
        app.component('ZResume', ZResume);
    }
} satisfies Theme